<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
	<title>CSS Test: float</title>
	<link rel="author" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html" title="CSS1 Test Suite Contributors"/>
	<link rel="author" href="mailto:ian@hixie.ch" title="Ian Hickson"/>
	<style type="text/css"><![CDATA[
   .a { color: navy; }
   div.yellow, div.blue, div.red, div.green {
    width: 60px; padding: 20px; margin: 10px;
    border: 20px solid black; float: left; text-align: center;
   }
   div.yellow {margin-left: 0px; background: yellow; color: black;}
   div.blue {background: blue; color: white;}
   div.red {background: red; color: black;}
   div.green {background: green; color: white;}
   div.below {clear: both;}
   table {margin: 10px 0px;}
  ]]></style>
	<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats"/>
	<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#float-position" title="9.5.1 Positioning the float: the &apos;float&apos; property"/>
  </head>
  <body>
	<p class="a">
	  Below you should see four blocks side by side followed by a
	  matching cross section of the four blocks.
	</p>
	<div class="yellow">
	  <p>
		Yellow
	  </p>
	</div>
	<div class="blue">
	  <p>
		Blue
	  </p>
	</div>
	<div class="red">
	  <p>
		Red
	  </p>
	</div>
	<div class="green">
	  <p>
		Green
	  </p>
	</div>
	<div class="below">
	  <table cellspacing="0" cellpadding="0">
		<col width="20" />
		<col width="100" />
		<col width="20" />
		<col width="20" />
		<col width="20" />
		<col width="100" />
		<col width="20" />
		<col width="20" />
		<col width="20" />
		<col width="100" />
		<col width="20" />
		<col width="20" />
		<col width="20" />
		<col width="100" />
		<col width="20" />
		<tr>
		  <td  style="background: black">
			&nbsp;
		  </td>
		  <td  style="background: yellow">
			&nbsp;
		  </td>
		  <td  style="background: black">
			&nbsp;
		  </td>
		  <td  style="background: white">
			&nbsp;
		  </td>
		  <td  style="background: black">
			&nbsp;
		  </td>
		  <td  style="background: blue">
			&nbsp;
		  </td>
		  <td  style="background: black">
			&nbsp;
		  </td>
		  <td  style="background: white">
			&nbsp;
		  </td>
		  <td  style="background: black">
			&nbsp;
		  </td>
		  <td  style="background: red">
			&nbsp;
		  </td>
		  <td  style="background: black">
			&nbsp;
		  </td>
		  <td  style="background: white">
			&nbsp;
		  </td>
		  <td  style="background: black">
			&nbsp;
		  </td>
		  <td  style="background: green">
			&nbsp;
		  </td>
		  <td  style="background: black">
			&nbsp;
		  </td>
		</tr>
	  </table>
	</div>
  </body>
</html>
